package hotelManagement.hotelArtifacts;

import java.util.*;

import org.springframework.orm.hibernate3.support.*;

public class MessageInfoDaoImpl extends HibernateDaoSupport implements MessageInfoDao{
	
	public void save(MessageInfo messageInfo){
		getHibernateTemplate().save(messageInfo);
	}
	
	public void update(MessageInfo messageInfo){
		getHibernateTemplate().update(messageInfo);
	}
	
	public void delete(MessageInfo messageInfo){
		getHibernateTemplate().delete(messageInfo);
	}
	
	public List<MessageInfo> getAll(){
		List<MessageInfo> mi = getHibernateTemplate().find("from MessageInfo");
		return mi;
	}
}
